export const actions = {
  nuxtServerInit({commit},{app,req}) {
    const  tokenIndex=req.headers.cookie.indexOf("Login-Token")
    if(tokenIndex!==-1){
      const token=req.headers.cookie.slice(req.headers.cookie.lastIndexOf('=')+1)
      if (token) {
        console.log("nuxtServerInit: token:"+token);
        commit("user/init", token);
      }
    }
  }
};
